package com.Alex.ComicOnline;

import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.view.Menu;

public class ComicOnline extends Activity {

	private static final int INSERT_ID = Menu.FIRST;
	private static final int SETTING_ID = Menu.FIRST + 1;

	private DbAdapter mDbHelper;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.main);
		mDbHelper = new DbAdapter(this);
		mDbHelper.open();
		bindListView();
		this.registerForContextMenu(this.findViewById(R.id.booklist));
	}

	private void bindListView() {
		Cursor booksCursor = mDbHelper.fetchAllBooks();
		startManagingCursor(booksCursor);

		String[] from = new String[] { DbAdapter.KEY_BOOK_NAME };
		int[] to = new int[] { R.id.booklist };
		SimpleCursorAdapter
	}
}